from openai import OpenAI
client = OpenAI()

# response = client.fine_tuning.jobs.create(
#   training_file="file-WAHNSvKhWcuEia5QeSHTSS",
#   model="gpt-4o-mini-2024-07-18"
# )
#print(response)

print(client.fine_tuning.jobs.list(limit=10))
#SyncCursorPage[FineTuningJob](data=[FineTuningJob(id='ftjob-7uSKwuzmIuf2A3qmJd4zQvmm', created_at=1743611211, error=Error(code=None, message=None, param=None), fine_tuned_model='ft:gpt-4o-mini-2024-07-18:starmax-technology::BHvJ8VUY', finished_at=1743611564, hyperparameters=Hyperparameters(batch_size=1, learning_rate_multiplier=1.8, n_epochs=6), model='gpt-4o-mini-2024-07-18', object='fine_tuning.job', organization_id='org-qcxuoXSRhLq9IMi5WA5vaHvh', result_files=['file-2RMfTxzhVjkKC3UktoyndF'], seed=781391935, status='succeeded', trained_tokens=58596, training_file='file-WAHNSvKhWcuEia5QeSHTSS', validation_file=None, estimated_finish=None, integrations=[], metadata=None, method=Method(dpo=None, supervised=MethodSupervised(hyperparameters=MethodSupervisedHyperparameters(batch_size=1, learning_rate_multiplier=1.8, n_epochs=6)), type='supervised'), user_provided_suffix=None)], has_more=False, object='list')